{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 随机数生成六个班的考试成绩，3门考试：Python、数学、语文。每个班50人"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import numpy as np"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 将六个班的考试成绩进行合并得到score"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {
    "collapsed": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([[[  4,  69,  10],\n",
       "        [ 72,  54,  45],\n",
       "        [ 67,  14,  84],\n",
       "        [ 15,  68,  21],\n",
       "        [ 82,  90,  61],\n",
       "        [ 89,  26, 100],\n",
       "        [  0, 100,  32],\n",
       "        [  1,  65,  92],\n",
       "        [ 75,  87,  83],\n",
       "        [ 19,  31,  62],\n",
       "        [ 18,  81,  19],\n",
       "        [  6,  55,  41],\n",
       "        [ 85,  73,  53],\n",
       "        [ 32,  89,  95],\n",
       "        [ 15,  65,   4],\n",
       "        [ 27,  64,  91],\n",
       "        [ 85,  65,  62],\n",
       "        [ 18,  13,  11],\n",
       "        [ 78,  12,   7],\n",
       "        [ 86,  22,  76],\n",
       "        [ 89,  64,  24],\n",
       "        [ 69,  86,  20],\n",
       "        [ 20,   8,  45],\n",
       "        [  2,   3,  99],\n",
       "        [ 69,  98,   7],\n",
       "        [ 92,  42,  38],\n",
       "        [ 34,  69,  20],\n",
       "        [ 36,  75,  37],\n",
       "        [ 27,  98,  64],\n",
       "        [ 21,  96,  79],\n",
       "        [ 64,  38,  45],\n",
       "        [ 42,  15,  60],\n",
       "        [  5,  94,  75],\n",
       "        [ 82,  64,  53],\n",
       "        [ 12,  63,  98],\n",
       "        [ 73,  89,  10],\n",
       "        [ 68,   6,  97],\n",
       "        [ 86, 100,  48],\n",
       "        [ 55, 100,  94],\n",
       "        [ 77,  33,  64],\n",
       "        [ 15,  53,  31],\n",
       "        [ 98,  60,  30],\n",
       "        [ 60,  96,  83],\n",
       "        [ 92,  75,  71],\n",
       "        [ 17,  16,  27],\n",
       "        [ 18,  93,  84],\n",
       "        [ 30,   5,  62],\n",
       "        [ 44,  63,   9],\n",
       "        [ 27,  55,   0],\n",
       "        [ 10,  33,  84]],\n",
       "\n",
       "       [[ 34,  42,  75],\n",
       "        [ 34,  75,  64],\n",
       "        [ 49,  80,  99],\n",
       "        [ 26, 100,  43],\n",
       "        [ 56,  33,  79],\n",
       "        [ 58,  31,  90],\n",
       "        [ 77,  39,   5],\n",
       "        [ 56,  65,  88],\n",
       "        [ 12,  61,   5],\n",
       "        [ 94,  83,   2],\n",
       "        [ 80,  44,  64],\n",
       "        [ 64,  20,  95],\n",
       "        [ 59,  82,  14],\n",
       "        [ 71,  84,  10],\n",
       "        [ 89,  12,  47],\n",
       "        [ 79,   2,  70],\n",
       "        [ 49,  87,  16],\n",
       "        [ 96,  46,  33],\n",
       "        [ 82,  51,  97],\n",
       "        [ 93,  65,  19],\n",
       "        [ 41,  94,  39],\n",
       "        [ 31,  64,  14],\n",
       "        [ 29,  36,  63],\n",
       "        [ 79,  29,  22],\n",
       "        [ 68,  99,   0],\n",
       "        [ 20,  26,  27],\n",
       "        [ 96,  14,  11],\n",
       "        [  7,  89,  96],\n",
       "        [ 74,  71,  12],\n",
       "        [ 17,  35,   0],\n",
       "        [ 99,  87,  17],\n",
       "        [ 35,  43,  57],\n",
       "        [ 95,  40,  90],\n",
       "        [  1,   4,   1],\n",
       "        [ 49,  11,  78],\n",
       "        [ 71,  43,  56],\n",
       "        [ 23,  23,  48],\n",
       "        [ 45,  32,  82],\n",
       "        [ 89,  67,  82],\n",
       "        [ 75,  34,  88],\n",
       "        [ 66,  35,  18],\n",
       "        [ 44,  16,  21],\n",
       "        [ 81,  79,  82],\n",
       "        [ 51,   2,  73],\n",
       "        [ 19,  24,  17],\n",
       "        [ 87,  50,  16],\n",
       "        [ 42,  10,  85],\n",
       "        [ 56,  55,  32],\n",
       "        [ 45,  43,  38],\n",
       "        [  1,  70,   8]],\n",
       "\n",
       "       [[ 73,   5,  82],\n",
       "        [ 38,   4,  77],\n",
       "        [ 61,  26,  82],\n",
       "        [ 53,  31,  55],\n",
       "        [ 25,  39,  70],\n",
       "        [ 72,  77,  98],\n",
       "        [ 53,  66,  79],\n",
       "        [  8,  68,  73],\n",
       "        [  9,  96,  13],\n",
       "        [100,  37,  70],\n",
       "        [ 67,  71,  76],\n",
       "        [ 94,  47,  32],\n",
       "        [ 77,   8,   5],\n",
       "        [ 68,  41,  71],\n",
       "        [ 39,  29,  12],\n",
       "        [ 35,  27,  45],\n",
       "        [ 42,  16,  77],\n",
       "        [ 98,  56,  40],\n",
       "        [ 43,  61,  67],\n",
       "        [  7,  94,  13],\n",
       "        [ 39,  59,  85],\n",
       "        [ 81,  59,  71],\n",
       "        [ 18,  77,  66],\n",
       "        [ 61,  94,  57],\n",
       "        [ 30,  45,  88],\n",
       "        [ 27,  60,  48],\n",
       "        [ 88,   3,  32],\n",
       "        [ 48,   4,  71],\n",
       "        [ 82,  46,  91],\n",
       "        [  5,  26,  55],\n",
       "        [ 43,   8,  34],\n",
       "        [ 50,  84,  52],\n",
       "        [ 48,  18,  12],\n",
       "        [ 14,  23,  27],\n",
       "        [ 82,  22,  47],\n",
       "        [ 38,  19,  58],\n",
       "        [ 96,  81,  61],\n",
       "        [ 12,  82,  20],\n",
       "        [ 92,   9,  45],\n",
       "        [ 33,  85,  66],\n",
       "        [ 15,  49,  86],\n",
       "        [ 34,  87,  54],\n",
       "        [ 35,  29,  29],\n",
       "        [ 92,  42,  15],\n",
       "        [ 78,  41,  56],\n",
       "        [ 85,  32,   3],\n",
       "        [ 16,  15,  62],\n",
       "        [ 56,  90,  75],\n",
       "        [ 99,  56,  14],\n",
       "        [ 87,  94,  39]],\n",
       "\n",
       "       [[  8,  24,  36],\n",
       "        [ 62,   2,  34],\n",
       "        [ 45,  50,  27],\n",
       "        [ 76, 100,  56],\n",
       "        [ 33,  63,   0],\n",
       "        [ 49,  56,  86],\n",
       "        [ 87,  50,  24],\n",
       "        [ 78,  34,  91],\n",
       "        [ 76,  57,  90],\n",
       "        [ 65,  93,  22],\n",
       "        [ 13, 100,  46],\n",
       "        [ 17,  99,  12],\n",
       "        [ 50,  55,  80],\n",
       "        [ 84,  93,  45],\n",
       "        [  0,  93,  68],\n",
       "        [ 65,  70,   2],\n",
       "        [ 87,   3,  27],\n",
       "        [ 74,  87,  16],\n",
       "        [  1,  97,  48],\n",
       "        [ 10,  76,  91],\n",
       "        [ 93,  93,  28],\n",
       "        [ 70,   5,  83],\n",
       "        [ 62,  99,  87],\n",
       "        [  8,   5,  47],\n",
       "        [ 38,  95,  80],\n",
       "        [ 54,  47,  44],\n",
       "        [ 16,  44,  23],\n",
       "        [ 52,  38,   6],\n",
       "        [  6,  96,  32],\n",
       "        [ 30,  70,  84],\n",
       "        [ 10,  17,   2],\n",
       "        [ 29,  94,  62],\n",
       "        [ 42,   8,  53],\n",
       "        [ 54,  56,  30],\n",
       "        [ 80,  43,  86],\n",
       "        [ 10,   0,  35],\n",
       "        [ 29,  58,  23],\n",
       "        [ 98,  75,  96],\n",
       "        [ 73,  25,  54],\n",
       "        [  2,  33,  82],\n",
       "        [ 65,  90,  93],\n",
       "        [ 48,  66,  86],\n",
       "        [ 60,  57,  89],\n",
       "        [ 48,  51,  53],\n",
       "        [  6,  39,  43],\n",
       "        [ 99,   0,  36],\n",
       "        [ 87,  95,  88],\n",
       "        [ 88,  38,  56],\n",
       "        [ 13,  65,  50],\n",
       "        [  6,  33,  72]],\n",
       "\n",
       "       [[ 33,  97,  99],\n",
       "        [ 62,   1,  56],\n",
       "        [  4,  69,  58],\n",
       "        [ 68,  99,  52],\n",
       "        [ 66,  54,  29],\n",
       "        [ 37,  42,  76],\n",
       "        [ 34,  28,  15],\n",
       "        [ 52,   5,  48],\n",
       "        [ 21,  81,  36],\n",
       "        [ 90,  93,  61],\n",
       "        [ 51,  52,   4],\n",
       "        [ 82,   1,  20],\n",
       "        [ 25,  20,  55],\n",
       "        [ 56,  73,  62],\n",
       "        [  3,  18,  54],\n",
       "        [ 25,  53,   5],\n",
       "        [ 83,  70,  12],\n",
       "        [ 46,  41,  91],\n",
       "        [ 38,  80,   3],\n",
       "        [ 93,  29,  28],\n",
       "        [ 61,  75,  32],\n",
       "        [ 17,  58,  27],\n",
       "        [ 31,  96,  55],\n",
       "        [ 68,  97,  19],\n",
       "        [ 34,  13,  47],\n",
       "        [ 47,  22,  49],\n",
       "        [ 10,  53,  38],\n",
       "        [ 53,  51,  43],\n",
       "        [ 27,  65,  70],\n",
       "        [  5,  24,  95],\n",
       "        [ 74,  11,  89],\n",
       "        [ 81,  84,  11],\n",
       "        [  9,  55,   7],\n",
       "        [ 14,  49,  25],\n",
       "        [ 52,  48,  77],\n",
       "        [ 81,  60,   1],\n",
       "        [ 55,  39, 100],\n",
       "        [ 56,  54,  87],\n",
       "        [ 64,  28,  15],\n",
       "        [ 61,  75,  98],\n",
       "        [ 85,  15,  21],\n",
       "        [ 21,  31,  49],\n",
       "        [ 11,  92,  35],\n",
       "        [ 61,  35,  25],\n",
       "        [ 15,  53,  44],\n",
       "        [ 43,  20,  53],\n",
       "        [ 83,   4,  26],\n",
       "        [ 64,  94,  93],\n",
       "        [ 13,  59,  70],\n",
       "        [ 94,  44,   5]],\n",
       "\n",
       "       [[ 33,  24,  27],\n",
       "        [  8,  57,  41],\n",
       "        [ 43,  30,  25],\n",
       "        [ 80,  12,  72],\n",
       "        [ 14,  53,   4],\n",
       "        [ 56,  89,  86],\n",
       "        [ 55,  29,  16],\n",
       "        [ 87,  46,  81],\n",
       "        [ 24, 100,  38],\n",
       "        [ 17,  41,  27],\n",
       "        [ 69,  11,  11],\n",
       "        [ 24,  26,  69],\n",
       "        [ 82,  41,   1],\n",
       "        [ 76,   6,  99],\n",
       "        [ 76,  34,  95],\n",
       "        [ 27,  30,  57],\n",
       "        [ 14,  93,  28],\n",
       "        [ 31,  73,  99],\n",
       "        [  2,  86,  63],\n",
       "        [ 65,  69,  60],\n",
       "        [ 47,  88,   9],\n",
       "        [ 40,  37,  52],\n",
       "        [ 74,  72,   0],\n",
       "        [ 40,  16,   1],\n",
       "        [ 67,  27,  73],\n",
       "        [ 32,  64,  78],\n",
       "        [ 67,  48,  11],\n",
       "        [ 13,  84,  99],\n",
       "        [ 40,  26,  88],\n",
       "        [ 52,  94,  97],\n",
       "        [ 29,  73,  91],\n",
       "        [ 45,  87,  34],\n",
       "        [ 25,  20,  89],\n",
       "        [  7,  75,  63],\n",
       "        [ 92,  18,  87],\n",
       "        [ 82,  63,   5],\n",
       "        [  2,  45,  56],\n",
       "        [ 59,  41,  77],\n",
       "        [ 44,  96,  95],\n",
       "        [ 30,  70,  80],\n",
       "        [ 88,  43,  54],\n",
       "        [ 22,  45,  91],\n",
       "        [ 71,  28,  32],\n",
       "        [ 15,  30,  55],\n",
       "        [ 97,  67,   0],\n",
       "        [ 70,  68,  86],\n",
       "        [ 48,  65,  96],\n",
       "        [ 42,  68,  22],\n",
       "        [  9,   1,  67],\n",
       "        [ 54,  39,  39]]])"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "score1 = np.random.randint(0,101,size = (6,50,3))\n",
    "display(score1)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {
    "collapsed": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([[  4,  69,  10],\n",
       "       [ 72,  54,  45],\n",
       "       [ 67,  14,  84],\n",
       "       [ 15,  68,  21],\n",
       "       [ 82,  90,  61],\n",
       "       [ 89,  26, 100],\n",
       "       [  0, 100,  32],\n",
       "       [  1,  65,  92],\n",
       "       [ 75,  87,  83],\n",
       "       [ 19,  31,  62],\n",
       "       [ 18,  81,  19],\n",
       "       [  6,  55,  41],\n",
       "       [ 85,  73,  53],\n",
       "       [ 32,  89,  95],\n",
       "       [ 15,  65,   4],\n",
       "       [ 27,  64,  91],\n",
       "       [ 85,  65,  62],\n",
       "       [ 18,  13,  11],\n",
       "       [ 78,  12,   7],\n",
       "       [ 86,  22,  76],\n",
       "       [ 89,  64,  24],\n",
       "       [ 69,  86,  20],\n",
       "       [ 20,   8,  45],\n",
       "       [  2,   3,  99],\n",
       "       [ 69,  98,   7],\n",
       "       [ 92,  42,  38],\n",
       "       [ 34,  69,  20],\n",
       "       [ 36,  75,  37],\n",
       "       [ 27,  98,  64],\n",
       "       [ 21,  96,  79],\n",
       "       [ 64,  38,  45],\n",
       "       [ 42,  15,  60],\n",
       "       [  5,  94,  75],\n",
       "       [ 82,  64,  53],\n",
       "       [ 12,  63,  98],\n",
       "       [ 73,  89,  10],\n",
       "       [ 68,   6,  97],\n",
       "       [ 86, 100,  48],\n",
       "       [ 55, 100,  94],\n",
       "       [ 77,  33,  64],\n",
       "       [ 15,  53,  31],\n",
       "       [ 98,  60,  30],\n",
       "       [ 60,  96,  83],\n",
       "       [ 92,  75,  71],\n",
       "       [ 17,  16,  27],\n",
       "       [ 18,  93,  84],\n",
       "       [ 30,   5,  62],\n",
       "       [ 44,  63,   9],\n",
       "       [ 27,  55,   0],\n",
       "       [ 10,  33,  84],\n",
       "       [ 34,  42,  75],\n",
       "       [ 34,  75,  64],\n",
       "       [ 49,  80,  99],\n",
       "       [ 26, 100,  43],\n",
       "       [ 56,  33,  79],\n",
       "       [ 58,  31,  90],\n",
       "       [ 77,  39,   5],\n",
       "       [ 56,  65,  88],\n",
       "       [ 12,  61,   5],\n",
       "       [ 94,  83,   2],\n",
       "       [ 80,  44,  64],\n",
       "       [ 64,  20,  95],\n",
       "       [ 59,  82,  14],\n",
       "       [ 71,  84,  10],\n",
       "       [ 89,  12,  47],\n",
       "       [ 79,   2,  70],\n",
       "       [ 49,  87,  16],\n",
       "       [ 96,  46,  33],\n",
       "       [ 82,  51,  97],\n",
       "       [ 93,  65,  19],\n",
       "       [ 41,  94,  39],\n",
       "       [ 31,  64,  14],\n",
       "       [ 29,  36,  63],\n",
       "       [ 79,  29,  22],\n",
       "       [ 68,  99,   0],\n",
       "       [ 20,  26,  27],\n",
       "       [ 96,  14,  11],\n",
       "       [  7,  89,  96],\n",
       "       [ 74,  71,  12],\n",
       "       [ 17,  35,   0],\n",
       "       [ 99,  87,  17],\n",
       "       [ 35,  43,  57],\n",
       "       [ 95,  40,  90],\n",
       "       [  1,   4,   1],\n",
       "       [ 49,  11,  78],\n",
       "       [ 71,  43,  56],\n",
       "       [ 23,  23,  48],\n",
       "       [ 45,  32,  82],\n",
       "       [ 89,  67,  82],\n",
       "       [ 75,  34,  88],\n",
       "       [ 66,  35,  18],\n",
       "       [ 44,  16,  21],\n",
       "       [ 81,  79,  82],\n",
       "       [ 51,   2,  73],\n",
       "       [ 19,  24,  17],\n",
       "       [ 87,  50,  16],\n",
       "       [ 42,  10,  85],\n",
       "       [ 56,  55,  32],\n",
       "       [ 45,  43,  38],\n",
       "       [  1,  70,   8],\n",
       "       [ 73,   5,  82],\n",
       "       [ 38,   4,  77],\n",
       "       [ 61,  26,  82],\n",
       "       [ 53,  31,  55],\n",
       "       [ 25,  39,  70],\n",
       "       [ 72,  77,  98],\n",
       "       [ 53,  66,  79],\n",
       "       [  8,  68,  73],\n",
       "       [  9,  96,  13],\n",
       "       [100,  37,  70],\n",
       "       [ 67,  71,  76],\n",
       "       [ 94,  47,  32],\n",
       "       [ 77,   8,   5],\n",
       "       [ 68,  41,  71],\n",
       "       [ 39,  29,  12],\n",
       "       [ 35,  27,  45],\n",
       "       [ 42,  16,  77],\n",
       "       [ 98,  56,  40],\n",
       "       [ 43,  61,  67],\n",
       "       [  7,  94,  13],\n",
       "       [ 39,  59,  85],\n",
       "       [ 81,  59,  71],\n",
       "       [ 18,  77,  66],\n",
       "       [ 61,  94,  57],\n",
       "       [ 30,  45,  88],\n",
       "       [ 27,  60,  48],\n",
       "       [ 88,   3,  32],\n",
       "       [ 48,   4,  71],\n",
       "       [ 82,  46,  91],\n",
       "       [  5,  26,  55],\n",
       "       [ 43,   8,  34],\n",
       "       [ 50,  84,  52],\n",
       "       [ 48,  18,  12],\n",
       "       [ 14,  23,  27],\n",
       "       [ 82,  22,  47],\n",
       "       [ 38,  19,  58],\n",
       "       [ 96,  81,  61],\n",
       "       [ 12,  82,  20],\n",
       "       [ 92,   9,  45],\n",
       "       [ 33,  85,  66],\n",
       "       [ 15,  49,  86],\n",
       "       [ 34,  87,  54],\n",
       "       [ 35,  29,  29],\n",
       "       [ 92,  42,  15],\n",
       "       [ 78,  41,  56],\n",
       "       [ 85,  32,   3],\n",
       "       [ 16,  15,  62],\n",
       "       [ 56,  90,  75],\n",
       "       [ 99,  56,  14],\n",
       "       [ 87,  94,  39],\n",
       "       [  8,  24,  36],\n",
       "       [ 62,   2,  34],\n",
       "       [ 45,  50,  27],\n",
       "       [ 76, 100,  56],\n",
       "       [ 33,  63,   0],\n",
       "       [ 49,  56,  86],\n",
       "       [ 87,  50,  24],\n",
       "       [ 78,  34,  91],\n",
       "       [ 76,  57,  90],\n",
       "       [ 65,  93,  22],\n",
       "       [ 13, 100,  46],\n",
       "       [ 17,  99,  12],\n",
       "       [ 50,  55,  80],\n",
       "       [ 84,  93,  45],\n",
       "       [  0,  93,  68],\n",
       "       [ 65,  70,   2],\n",
       "       [ 87,   3,  27],\n",
       "       [ 74,  87,  16],\n",
       "       [  1,  97,  48],\n",
       "       [ 10,  76,  91],\n",
       "       [ 93,  93,  28],\n",
       "       [ 70,   5,  83],\n",
       "       [ 62,  99,  87],\n",
       "       [  8,   5,  47],\n",
       "       [ 38,  95,  80],\n",
       "       [ 54,  47,  44],\n",
       "       [ 16,  44,  23],\n",
       "       [ 52,  38,   6],\n",
       "       [  6,  96,  32],\n",
       "       [ 30,  70,  84],\n",
       "       [ 10,  17,   2],\n",
       "       [ 29,  94,  62],\n",
       "       [ 42,   8,  53],\n",
       "       [ 54,  56,  30],\n",
       "       [ 80,  43,  86],\n",
       "       [ 10,   0,  35],\n",
       "       [ 29,  58,  23],\n",
       "       [ 98,  75,  96],\n",
       "       [ 73,  25,  54],\n",
       "       [  2,  33,  82],\n",
       "       [ 65,  90,  93],\n",
       "       [ 48,  66,  86],\n",
       "       [ 60,  57,  89],\n",
       "       [ 48,  51,  53],\n",
       "       [  6,  39,  43],\n",
       "       [ 99,   0,  36],\n",
       "       [ 87,  95,  88],\n",
       "       [ 88,  38,  56],\n",
       "       [ 13,  65,  50],\n",
       "       [  6,  33,  72],\n",
       "       [ 33,  97,  99],\n",
       "       [ 62,   1,  56],\n",
       "       [  4,  69,  58],\n",
       "       [ 68,  99,  52],\n",
       "       [ 66,  54,  29],\n",
       "       [ 37,  42,  76],\n",
       "       [ 34,  28,  15],\n",
       "       [ 52,   5,  48],\n",
       "       [ 21,  81,  36],\n",
       "       [ 90,  93,  61],\n",
       "       [ 51,  52,   4],\n",
       "       [ 82,   1,  20],\n",
       "       [ 25,  20,  55],\n",
       "       [ 56,  73,  62],\n",
       "       [  3,  18,  54],\n",
       "       [ 25,  53,   5],\n",
       "       [ 83,  70,  12],\n",
       "       [ 46,  41,  91],\n",
       "       [ 38,  80,   3],\n",
       "       [ 93,  29,  28],\n",
       "       [ 61,  75,  32],\n",
       "       [ 17,  58,  27],\n",
       "       [ 31,  96,  55],\n",
       "       [ 68,  97,  19],\n",
       "       [ 34,  13,  47],\n",
       "       [ 47,  22,  49],\n",
       "       [ 10,  53,  38],\n",
       "       [ 53,  51,  43],\n",
       "       [ 27,  65,  70],\n",
       "       [  5,  24,  95],\n",
       "       [ 74,  11,  89],\n",
       "       [ 81,  84,  11],\n",
       "       [  9,  55,   7],\n",
       "       [ 14,  49,  25],\n",
       "       [ 52,  48,  77],\n",
       "       [ 81,  60,   1],\n",
       "       [ 55,  39, 100],\n",
       "       [ 56,  54,  87],\n",
       "       [ 64,  28,  15],\n",
       "       [ 61,  75,  98],\n",
       "       [ 85,  15,  21],\n",
       "       [ 21,  31,  49],\n",
       "       [ 11,  92,  35],\n",
       "       [ 61,  35,  25],\n",
       "       [ 15,  53,  44],\n",
       "       [ 43,  20,  53],\n",
       "       [ 83,   4,  26],\n",
       "       [ 64,  94,  93],\n",
       "       [ 13,  59,  70],\n",
       "       [ 94,  44,   5],\n",
       "       [ 33,  24,  27],\n",
       "       [  8,  57,  41],\n",
       "       [ 43,  30,  25],\n",
       "       [ 80,  12,  72],\n",
       "       [ 14,  53,   4],\n",
       "       [ 56,  89,  86],\n",
       "       [ 55,  29,  16],\n",
       "       [ 87,  46,  81],\n",
       "       [ 24, 100,  38],\n",
       "       [ 17,  41,  27],\n",
       "       [ 69,  11,  11],\n",
       "       [ 24,  26,  69],\n",
       "       [ 82,  41,   1],\n",
       "       [ 76,   6,  99],\n",
       "       [ 76,  34,  95],\n",
       "       [ 27,  30,  57],\n",
       "       [ 14,  93,  28],\n",
       "       [ 31,  73,  99],\n",
       "       [  2,  86,  63],\n",
       "       [ 65,  69,  60],\n",
       "       [ 47,  88,   9],\n",
       "       [ 40,  37,  52],\n",
       "       [ 74,  72,   0],\n",
       "       [ 40,  16,   1],\n",
       "       [ 67,  27,  73],\n",
       "       [ 32,  64,  78],\n",
       "       [ 67,  48,  11],\n",
       "       [ 13,  84,  99],\n",
       "       [ 40,  26,  88],\n",
       "       [ 52,  94,  97],\n",
       "       [ 29,  73,  91],\n",
       "       [ 45,  87,  34],\n",
       "       [ 25,  20,  89],\n",
       "       [  7,  75,  63],\n",
       "       [ 92,  18,  87],\n",
       "       [ 82,  63,   5],\n",
       "       [  2,  45,  56],\n",
       "       [ 59,  41,  77],\n",
       "       [ 44,  96,  95],\n",
       "       [ 30,  70,  80],\n",
       "       [ 88,  43,  54],\n",
       "       [ 22,  45,  91],\n",
       "       [ 71,  28,  32],\n",
       "       [ 15,  30,  55],\n",
       "       [ 97,  67,   0],\n",
       "       [ 70,  68,  86],\n",
       "       [ 48,  65,  96],\n",
       "       [ 42,  68,  22],\n",
       "       [  9,   1,  67],\n",
       "       [ 54,  39,  39]])"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "score = score1.reshape(300,3)\n",
    "display(score)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 生成性别数组sex，水平叠加数组sex和score得到data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([[ 4, 69, 10,  1],\n",
       "       [72, 54, 45,  0],\n",
       "       [67, 14, 84,  1],\n",
       "       ...,\n",
       "       [42, 68, 22,  1],\n",
       "       [ 9,  1, 67,  1],\n",
       "       [54, 39, 39,  0]])"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "sex = np.random.randint(0,2,size = (300,1))\n",
    "data = np.hstack((score,sex))\n",
    "display(data)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 分别计算男女生各科成绩统计指标：最小值、最大值、平均分、中位数、标准差"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "300"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "display(len(data))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 42,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([ 72,  54,  45,   0,  15,  68,  21,   0,  89,  26, 100,   0,   0,\n",
       "       100,  32,   0,   6,  55,  41,   0,  32,  89,  95,   0,  27,  64,\n",
       "        91,   0,  85,  65,  62,   0,  18,  13,  11,   0,  86,  22,  76,\n",
       "         0,  89,  64,  24,   0,  69,  86,  20,   0,   2,   3,  99,   0,\n",
       "        34,  69,  20,   0,  21,  96,  79,   0,  42,  15,  60,   0,  77,\n",
       "        33,  64,   0,  15,  53,  31,   0,  98,  60,  30,   0,  60,  96,\n",
       "        83,   0,  17,  16,  27,   0,  30,   5,  62,   0,  27,  55,   0,\n",
       "         0,  56,  33,  79,   0,  77,  39,   5,   0,  56,  65,  88,   0,\n",
       "        89,  12,  47,   0,  79,   2,  70,   0,  49,  87,  16,   0,  96,\n",
       "        46,  33,   0,  82,  51,  97,   0,  93,  65,  19,   0,  41,  94,\n",
       "        39,   0,  29,  36,  63,   0,  68,  99,   0,   0,  20,  26,  27,\n",
       "         0,  96,  14,  11,   0,   7,  89,  96,   0,  74,  71,  12,   0,\n",
       "        17,  35,   0,   0,  35,  43,  57,   0,  49,  11,  78,   0,  66,\n",
       "        35,  18,   0,  44,  16,  21,   0,  51,   2,  73,   0,  19,  24,\n",
       "        17,   0,   1,  70,   8,   0,  73,   5,  82,   0,  53,  31,  55,\n",
       "         0,   8,  68,  73,   0,   9,  96,  13,   0, 100,  37,  70,   0,\n",
       "        68,  41,  71,   0,  39,  29,  12,   0,  42,  16,  77,   0,  39,\n",
       "        59,  85,   0,  61,  94,  57,   0,  30,  45,  88,   0,  27,  60,\n",
       "        48,   0,  48,   4,  71,   0,  82,  46,  91,   0,   5,  26,  55,\n",
       "         0,  48,  18,  12,   0,  38,  19,  58,   0,  96,  81,  61,   0,\n",
       "        12,  82,  20,   0,  15,  49,  86,   0,  34,  87,  54,   0,  35,\n",
       "        29,  29,   0,  78,  41,  56,   0,  49,  56,  86,   0,  76,  57,\n",
       "        90,   0,  65,  93,  22,   0,  13, 100,  46,   0,  17,  99,  12,\n",
       "         0,  50,  55,  80,   0,  84,  93,  45,   0,   0,  93,  68,   0,\n",
       "        74,  87,  16,   0,   1,  97,  48,   0,  62,  99,  87,   0,  38,\n",
       "        95,  80,   0,   6,  96,  32,   0,  30,  70,  84,   0,  29,  94,\n",
       "        62,   0,  80,  43,  86,   0,  29,  58,  23,   0,  73,  25,  54,\n",
       "         0,   2,  33,  82,   0,  65,  90,  93,   0,  48,  66,  86,   0,\n",
       "        99,   0,  36,   0,  87,  95,  88,   0,  88,  38,  56,   0,   6,\n",
       "        33,  72,   0,  33,  97,  99,   0,   4,  69,  58,   0,  52,   5,\n",
       "        48,   0,  21,  81,  36,   0,  51,  52,   4,   0,  82,   1,  20,\n",
       "         0,  25,  20,  55,   0,  56,  73,  62,   0,   3,  18,  54,   0,\n",
       "        83,  70,  12,   0,  46,  41,  91,   0,  68,  97,  19,   0,  47,\n",
       "        22,  49,   0,   5,  24,  95,   0,  74,  11,  89,   0,  81,  84,\n",
       "        11,   0,   9,  55,   7,   0,  81,  60,   1,   0,  55,  39, 100,\n",
       "         0,  56,  54,  87,   0,  64,  28,  15,   0,  21,  31,  49,   0,\n",
       "        11,  92,  35,   0,  61,  35,  25,   0,  43,  20,  53,   0,  83,\n",
       "         4,  26,   0,  64,  94,  93,   0,  94,  44,   5,   0,   8,  57,\n",
       "        41,   0,  43,  30,  25,   0,  80,  12,  72,   0,  14,  53,   4,\n",
       "         0,  56,  89,  86,   0,  87,  46,  81,   0,  69,  11,  11,   0,\n",
       "        82,  41,   1,   0,  27,  30,  57,   0,  14,  93,  28,   0,  65,\n",
       "        69,  60,   0,  47,  88,   9,   0,  74,  72,   0,   0,  67,  48,\n",
       "        11,   0,  40,  26,  88,   0,  52,  94,  97,   0,  29,  73,  91,\n",
       "         0,  25,  20,  89,   0,  44,  96,  95,   0,  88,  43,  54,   0,\n",
       "        71,  28,  32,   0,  97,  67,   0,   0,  70,  68,  86,   0,  48,\n",
       "        65,  96,   0,  54,  39,  39,   0])"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "array([  4,  69,  10,   1,  67,  14,  84,   1,  82,  90,  61,   1,   1,\n",
       "        65,  92,   1,  75,  87,  83,   1,  19,  31,  62,   1,  18,  81,\n",
       "        19,   1,  85,  73,  53,   1,  15,  65,   4,   1,  78,  12,   7,\n",
       "         1,  20,   8,  45,   1,  69,  98,   7,   1,  92,  42,  38,   1,\n",
       "        36,  75,  37,   1,  27,  98,  64,   1,  64,  38,  45,   1,   5,\n",
       "        94,  75,   1,  82,  64,  53,   1,  12,  63,  98,   1,  73,  89,\n",
       "        10,   1,  68,   6,  97,   1,  86, 100,  48,   1,  55, 100,  94,\n",
       "         1,  92,  75,  71,   1,  18,  93,  84,   1,  44,  63,   9,   1,\n",
       "        10,  33,  84,   1,  34,  42,  75,   1,  34,  75,  64,   1,  49,\n",
       "        80,  99,   1,  26, 100,  43,   1,  58,  31,  90,   1,  12,  61,\n",
       "         5,   1,  94,  83,   2,   1,  80,  44,  64,   1,  64,  20,  95,\n",
       "         1,  59,  82,  14,   1,  71,  84,  10,   1,  31,  64,  14,   1,\n",
       "        79,  29,  22,   1,  99,  87,  17,   1,  95,  40,  90,   1,   1,\n",
       "         4,   1,   1,  71,  43,  56,   1,  23,  23,  48,   1,  45,  32,\n",
       "        82,   1,  89,  67,  82,   1,  75,  34,  88,   1,  81,  79,  82,\n",
       "         1,  87,  50,  16,   1,  42,  10,  85,   1,  56,  55,  32,   1,\n",
       "        45,  43,  38,   1,  38,   4,  77,   1,  61,  26,  82,   1,  25,\n",
       "        39,  70,   1,  72,  77,  98,   1,  53,  66,  79,   1,  67,  71,\n",
       "        76,   1,  94,  47,  32,   1,  77,   8,   5,   1,  35,  27,  45,\n",
       "         1,  98,  56,  40,   1,  43,  61,  67,   1,   7,  94,  13,   1,\n",
       "        81,  59,  71,   1,  18,  77,  66,   1,  88,   3,  32,   1,  43,\n",
       "         8,  34,   1,  50,  84,  52,   1,  14,  23,  27,   1,  82,  22,\n",
       "        47,   1,  92,   9,  45,   1,  33,  85,  66,   1,  92,  42,  15,\n",
       "         1,  85,  32,   3,   1,  16,  15,  62,   1,  56,  90,  75,   1,\n",
       "        99,  56,  14,   1,  87,  94,  39,   1,   8,  24,  36,   1,  62,\n",
       "         2,  34,   1,  45,  50,  27,   1,  76, 100,  56,   1,  33,  63,\n",
       "         0,   1,  87,  50,  24,   1,  78,  34,  91,   1,  65,  70,   2,\n",
       "         1,  87,   3,  27,   1,  10,  76,  91,   1,  93,  93,  28,   1,\n",
       "        70,   5,  83,   1,   8,   5,  47,   1,  54,  47,  44,   1,  16,\n",
       "        44,  23,   1,  52,  38,   6,   1,  10,  17,   2,   1,  42,   8,\n",
       "        53,   1,  54,  56,  30,   1,  10,   0,  35,   1,  98,  75,  96,\n",
       "         1,  60,  57,  89,   1,  48,  51,  53,   1,   6,  39,  43,   1,\n",
       "        13,  65,  50,   1,  62,   1,  56,   1,  68,  99,  52,   1,  66,\n",
       "        54,  29,   1,  37,  42,  76,   1,  34,  28,  15,   1,  90,  93,\n",
       "        61,   1,  25,  53,   5,   1,  38,  80,   3,   1,  93,  29,  28,\n",
       "         1,  61,  75,  32,   1,  17,  58,  27,   1,  31,  96,  55,   1,\n",
       "        34,  13,  47,   1,  10,  53,  38,   1,  53,  51,  43,   1,  27,\n",
       "        65,  70,   1,  14,  49,  25,   1,  52,  48,  77,   1,  61,  75,\n",
       "        98,   1,  85,  15,  21,   1,  15,  53,  44,   1,  13,  59,  70,\n",
       "         1,  33,  24,  27,   1,  55,  29,  16,   1,  24, 100,  38,   1,\n",
       "        17,  41,  27,   1,  24,  26,  69,   1,  76,   6,  99,   1,  76,\n",
       "        34,  95,   1,  31,  73,  99,   1,   2,  86,  63,   1,  40,  37,\n",
       "        52,   1,  40,  16,   1,   1,  67,  27,  73,   1,  32,  64,  78,\n",
       "         1,  13,  84,  99,   1,  45,  87,  34,   1,   7,  75,  63,   1,\n",
       "        92,  18,  87,   1,  82,  63,   5,   1,   2,  45,  56,   1,  59,\n",
       "        41,  77,   1,  30,  70,  80,   1,  22,  45,  91,   1,  15,  30,\n",
       "        55,   1,  42,  68,  22,   1,   9,   1,  67,   1])"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "sex_0 = np.array([],dtype = 'int16')\n",
    "sex_1 = np.array([],dtype = 'int16')\n",
    "for num in range (len(data)):\n",
    "    if data[num,3] == 0:\n",
    "        sex_0 = np.concatenate([sex_0,data[num]],axis = 0)\n",
    "    else:\n",
    "        sex_1 = np.concatenate([sex_1,data[num]],axis = 0)\n",
    "display(sex_0,sex_1)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### 男生各科成绩的最小值，最大值，平均值，中位数、标准差"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 43,
   "metadata": {
    "collapsed": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([[ 72,  54,  45,   0],\n",
       "       [ 15,  68,  21,   0],\n",
       "       [ 89,  26, 100,   0],\n",
       "       [  0, 100,  32,   0],\n",
       "       [  6,  55,  41,   0],\n",
       "       [ 32,  89,  95,   0],\n",
       "       [ 27,  64,  91,   0],\n",
       "       [ 85,  65,  62,   0],\n",
       "       [ 18,  13,  11,   0],\n",
       "       [ 86,  22,  76,   0],\n",
       "       [ 89,  64,  24,   0],\n",
       "       [ 69,  86,  20,   0],\n",
       "       [  2,   3,  99,   0],\n",
       "       [ 34,  69,  20,   0],\n",
       "       [ 21,  96,  79,   0],\n",
       "       [ 42,  15,  60,   0],\n",
       "       [ 77,  33,  64,   0],\n",
       "       [ 15,  53,  31,   0],\n",
       "       [ 98,  60,  30,   0],\n",
       "       [ 60,  96,  83,   0],\n",
       "       [ 17,  16,  27,   0],\n",
       "       [ 30,   5,  62,   0],\n",
       "       [ 27,  55,   0,   0],\n",
       "       [ 56,  33,  79,   0],\n",
       "       [ 77,  39,   5,   0],\n",
       "       [ 56,  65,  88,   0],\n",
       "       [ 89,  12,  47,   0],\n",
       "       [ 79,   2,  70,   0],\n",
       "       [ 49,  87,  16,   0],\n",
       "       [ 96,  46,  33,   0],\n",
       "       [ 82,  51,  97,   0],\n",
       "       [ 93,  65,  19,   0],\n",
       "       [ 41,  94,  39,   0],\n",
       "       [ 29,  36,  63,   0],\n",
       "       [ 68,  99,   0,   0],\n",
       "       [ 20,  26,  27,   0],\n",
       "       [ 96,  14,  11,   0],\n",
       "       [  7,  89,  96,   0],\n",
       "       [ 74,  71,  12,   0],\n",
       "       [ 17,  35,   0,   0],\n",
       "       [ 35,  43,  57,   0],\n",
       "       [ 49,  11,  78,   0],\n",
       "       [ 66,  35,  18,   0],\n",
       "       [ 44,  16,  21,   0],\n",
       "       [ 51,   2,  73,   0],\n",
       "       [ 19,  24,  17,   0],\n",
       "       [  1,  70,   8,   0],\n",
       "       [ 73,   5,  82,   0],\n",
       "       [ 53,  31,  55,   0],\n",
       "       [  8,  68,  73,   0],\n",
       "       [  9,  96,  13,   0],\n",
       "       [100,  37,  70,   0],\n",
       "       [ 68,  41,  71,   0],\n",
       "       [ 39,  29,  12,   0],\n",
       "       [ 42,  16,  77,   0],\n",
       "       [ 39,  59,  85,   0],\n",
       "       [ 61,  94,  57,   0],\n",
       "       [ 30,  45,  88,   0],\n",
       "       [ 27,  60,  48,   0],\n",
       "       [ 48,   4,  71,   0],\n",
       "       [ 82,  46,  91,   0],\n",
       "       [  5,  26,  55,   0],\n",
       "       [ 48,  18,  12,   0],\n",
       "       [ 38,  19,  58,   0],\n",
       "       [ 96,  81,  61,   0],\n",
       "       [ 12,  82,  20,   0],\n",
       "       [ 15,  49,  86,   0],\n",
       "       [ 34,  87,  54,   0],\n",
       "       [ 35,  29,  29,   0],\n",
       "       [ 78,  41,  56,   0],\n",
       "       [ 49,  56,  86,   0],\n",
       "       [ 76,  57,  90,   0],\n",
       "       [ 65,  93,  22,   0],\n",
       "       [ 13, 100,  46,   0],\n",
       "       [ 17,  99,  12,   0],\n",
       "       [ 50,  55,  80,   0],\n",
       "       [ 84,  93,  45,   0],\n",
       "       [  0,  93,  68,   0],\n",
       "       [ 74,  87,  16,   0],\n",
       "       [  1,  97,  48,   0],\n",
       "       [ 62,  99,  87,   0],\n",
       "       [ 38,  95,  80,   0],\n",
       "       [  6,  96,  32,   0],\n",
       "       [ 30,  70,  84,   0],\n",
       "       [ 29,  94,  62,   0],\n",
       "       [ 80,  43,  86,   0],\n",
       "       [ 29,  58,  23,   0],\n",
       "       [ 73,  25,  54,   0],\n",
       "       [  2,  33,  82,   0],\n",
       "       [ 65,  90,  93,   0],\n",
       "       [ 48,  66,  86,   0],\n",
       "       [ 99,   0,  36,   0],\n",
       "       [ 87,  95,  88,   0],\n",
       "       [ 88,  38,  56,   0],\n",
       "       [  6,  33,  72,   0],\n",
       "       [ 33,  97,  99,   0],\n",
       "       [  4,  69,  58,   0],\n",
       "       [ 52,   5,  48,   0],\n",
       "       [ 21,  81,  36,   0],\n",
       "       [ 51,  52,   4,   0],\n",
       "       [ 82,   1,  20,   0],\n",
       "       [ 25,  20,  55,   0],\n",
       "       [ 56,  73,  62,   0],\n",
       "       [  3,  18,  54,   0],\n",
       "       [ 83,  70,  12,   0],\n",
       "       [ 46,  41,  91,   0],\n",
       "       [ 68,  97,  19,   0],\n",
       "       [ 47,  22,  49,   0],\n",
       "       [  5,  24,  95,   0],\n",
       "       [ 74,  11,  89,   0],\n",
       "       [ 81,  84,  11,   0],\n",
       "       [  9,  55,   7,   0],\n",
       "       [ 81,  60,   1,   0],\n",
       "       [ 55,  39, 100,   0],\n",
       "       [ 56,  54,  87,   0],\n",
       "       [ 64,  28,  15,   0],\n",
       "       [ 21,  31,  49,   0],\n",
       "       [ 11,  92,  35,   0],\n",
       "       [ 61,  35,  25,   0],\n",
       "       [ 43,  20,  53,   0],\n",
       "       [ 83,   4,  26,   0],\n",
       "       [ 64,  94,  93,   0],\n",
       "       [ 94,  44,   5,   0],\n",
       "       [  8,  57,  41,   0],\n",
       "       [ 43,  30,  25,   0],\n",
       "       [ 80,  12,  72,   0],\n",
       "       [ 14,  53,   4,   0],\n",
       "       [ 56,  89,  86,   0],\n",
       "       [ 87,  46,  81,   0],\n",
       "       [ 69,  11,  11,   0],\n",
       "       [ 82,  41,   1,   0],\n",
       "       [ 27,  30,  57,   0],\n",
       "       [ 14,  93,  28,   0],\n",
       "       [ 65,  69,  60,   0],\n",
       "       [ 47,  88,   9,   0],\n",
       "       [ 74,  72,   0,   0],\n",
       "       [ 67,  48,  11,   0],\n",
       "       [ 40,  26,  88,   0],\n",
       "       [ 52,  94,  97,   0],\n",
       "       [ 29,  73,  91,   0],\n",
       "       [ 25,  20,  89,   0],\n",
       "       [ 44,  96,  95,   0],\n",
       "       [ 88,  43,  54,   0],\n",
       "       [ 71,  28,  32,   0],\n",
       "       [ 97,  67,   0,   0],\n",
       "       [ 70,  68,  86,   0],\n",
       "       [ 48,  65,  96,   0],\n",
       "       [ 54,  39,  39,   0]])"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "array([[  4,  69,  10,   1],\n",
       "       [ 67,  14,  84,   1],\n",
       "       [ 82,  90,  61,   1],\n",
       "       [  1,  65,  92,   1],\n",
       "       [ 75,  87,  83,   1],\n",
       "       [ 19,  31,  62,   1],\n",
       "       [ 18,  81,  19,   1],\n",
       "       [ 85,  73,  53,   1],\n",
       "       [ 15,  65,   4,   1],\n",
       "       [ 78,  12,   7,   1],\n",
       "       [ 20,   8,  45,   1],\n",
       "       [ 69,  98,   7,   1],\n",
       "       [ 92,  42,  38,   1],\n",
       "       [ 36,  75,  37,   1],\n",
       "       [ 27,  98,  64,   1],\n",
       "       [ 64,  38,  45,   1],\n",
       "       [  5,  94,  75,   1],\n",
       "       [ 82,  64,  53,   1],\n",
       "       [ 12,  63,  98,   1],\n",
       "       [ 73,  89,  10,   1],\n",
       "       [ 68,   6,  97,   1],\n",
       "       [ 86, 100,  48,   1],\n",
       "       [ 55, 100,  94,   1],\n",
       "       [ 92,  75,  71,   1],\n",
       "       [ 18,  93,  84,   1],\n",
       "       [ 44,  63,   9,   1],\n",
       "       [ 10,  33,  84,   1],\n",
       "       [ 34,  42,  75,   1],\n",
       "       [ 34,  75,  64,   1],\n",
       "       [ 49,  80,  99,   1],\n",
       "       [ 26, 100,  43,   1],\n",
       "       [ 58,  31,  90,   1],\n",
       "       [ 12,  61,   5,   1],\n",
       "       [ 94,  83,   2,   1],\n",
       "       [ 80,  44,  64,   1],\n",
       "       [ 64,  20,  95,   1],\n",
       "       [ 59,  82,  14,   1],\n",
       "       [ 71,  84,  10,   1],\n",
       "       [ 31,  64,  14,   1],\n",
       "       [ 79,  29,  22,   1],\n",
       "       [ 99,  87,  17,   1],\n",
       "       [ 95,  40,  90,   1],\n",
       "       [  1,   4,   1,   1],\n",
       "       [ 71,  43,  56,   1],\n",
       "       [ 23,  23,  48,   1],\n",
       "       [ 45,  32,  82,   1],\n",
       "       [ 89,  67,  82,   1],\n",
       "       [ 75,  34,  88,   1],\n",
       "       [ 81,  79,  82,   1],\n",
       "       [ 87,  50,  16,   1],\n",
       "       [ 42,  10,  85,   1],\n",
       "       [ 56,  55,  32,   1],\n",
       "       [ 45,  43,  38,   1],\n",
       "       [ 38,   4,  77,   1],\n",
       "       [ 61,  26,  82,   1],\n",
       "       [ 25,  39,  70,   1],\n",
       "       [ 72,  77,  98,   1],\n",
       "       [ 53,  66,  79,   1],\n",
       "       [ 67,  71,  76,   1],\n",
       "       [ 94,  47,  32,   1],\n",
       "       [ 77,   8,   5,   1],\n",
       "       [ 35,  27,  45,   1],\n",
       "       [ 98,  56,  40,   1],\n",
       "       [ 43,  61,  67,   1],\n",
       "       [  7,  94,  13,   1],\n",
       "       [ 81,  59,  71,   1],\n",
       "       [ 18,  77,  66,   1],\n",
       "       [ 88,   3,  32,   1],\n",
       "       [ 43,   8,  34,   1],\n",
       "       [ 50,  84,  52,   1],\n",
       "       [ 14,  23,  27,   1],\n",
       "       [ 82,  22,  47,   1],\n",
       "       [ 92,   9,  45,   1],\n",
       "       [ 33,  85,  66,   1],\n",
       "       [ 92,  42,  15,   1],\n",
       "       [ 85,  32,   3,   1],\n",
       "       [ 16,  15,  62,   1],\n",
       "       [ 56,  90,  75,   1],\n",
       "       [ 99,  56,  14,   1],\n",
       "       [ 87,  94,  39,   1],\n",
       "       [  8,  24,  36,   1],\n",
       "       [ 62,   2,  34,   1],\n",
       "       [ 45,  50,  27,   1],\n",
       "       [ 76, 100,  56,   1],\n",
       "       [ 33,  63,   0,   1],\n",
       "       [ 87,  50,  24,   1],\n",
       "       [ 78,  34,  91,   1],\n",
       "       [ 65,  70,   2,   1],\n",
       "       [ 87,   3,  27,   1],\n",
       "       [ 10,  76,  91,   1],\n",
       "       [ 93,  93,  28,   1],\n",
       "       [ 70,   5,  83,   1],\n",
       "       [  8,   5,  47,   1],\n",
       "       [ 54,  47,  44,   1],\n",
       "       [ 16,  44,  23,   1],\n",
       "       [ 52,  38,   6,   1],\n",
       "       [ 10,  17,   2,   1],\n",
       "       [ 42,   8,  53,   1],\n",
       "       [ 54,  56,  30,   1],\n",
       "       [ 10,   0,  35,   1],\n",
       "       [ 98,  75,  96,   1],\n",
       "       [ 60,  57,  89,   1],\n",
       "       [ 48,  51,  53,   1],\n",
       "       [  6,  39,  43,   1],\n",
       "       [ 13,  65,  50,   1],\n",
       "       [ 62,   1,  56,   1],\n",
       "       [ 68,  99,  52,   1],\n",
       "       [ 66,  54,  29,   1],\n",
       "       [ 37,  42,  76,   1],\n",
       "       [ 34,  28,  15,   1],\n",
       "       [ 90,  93,  61,   1],\n",
       "       [ 25,  53,   5,   1],\n",
       "       [ 38,  80,   3,   1],\n",
       "       [ 93,  29,  28,   1],\n",
       "       [ 61,  75,  32,   1],\n",
       "       [ 17,  58,  27,   1],\n",
       "       [ 31,  96,  55,   1],\n",
       "       [ 34,  13,  47,   1],\n",
       "       [ 10,  53,  38,   1],\n",
       "       [ 53,  51,  43,   1],\n",
       "       [ 27,  65,  70,   1],\n",
       "       [ 14,  49,  25,   1],\n",
       "       [ 52,  48,  77,   1],\n",
       "       [ 61,  75,  98,   1],\n",
       "       [ 85,  15,  21,   1],\n",
       "       [ 15,  53,  44,   1],\n",
       "       [ 13,  59,  70,   1],\n",
       "       [ 33,  24,  27,   1],\n",
       "       [ 55,  29,  16,   1],\n",
       "       [ 24, 100,  38,   1],\n",
       "       [ 17,  41,  27,   1],\n",
       "       [ 24,  26,  69,   1],\n",
       "       [ 76,   6,  99,   1],\n",
       "       [ 76,  34,  95,   1],\n",
       "       [ 31,  73,  99,   1],\n",
       "       [  2,  86,  63,   1],\n",
       "       [ 40,  37,  52,   1],\n",
       "       [ 40,  16,   1,   1],\n",
       "       [ 67,  27,  73,   1],\n",
       "       [ 32,  64,  78,   1],\n",
       "       [ 13,  84,  99,   1],\n",
       "       [ 45,  87,  34,   1],\n",
       "       [  7,  75,  63,   1],\n",
       "       [ 92,  18,  87,   1],\n",
       "       [ 82,  63,   5,   1],\n",
       "       [  2,  45,  56,   1],\n",
       "       [ 59,  41,  77,   1],\n",
       "       [ 30,  70,  80,   1],\n",
       "       [ 22,  45,  91,   1],\n",
       "       [ 15,  30,  55,   1],\n",
       "       [ 42,  68,  22,   1],\n",
       "       [  9,   1,  67,   1]])"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "a = int(len(sex_0)/4)\n",
    "b = int(len(sex_1)/4)\n",
    "sex_0 = sex_0.reshape(a,4)\n",
    "sex_1 = sex_1.reshape(b,4)\n",
    "display(sex_0,sex_1)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 53,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "男生中python成绩中的最大值、最小值、平均数、标准差分别是 100 0 48.91891891891892 48.91891891891892 819.5204528853176\n",
      "男生中数学成绩中的最大值、最小值、平均数、标准差分别是 100 0 52.560810810810814 52.560810810810814 887.1787344777207\n",
      "男生中语文成绩中的最大值、最小值、平均数、标准差分别是 100 0 51.054054054054056 51.054054054054056 964.267348429511\n"
     ]
    }
   ],
   "source": [
    "a0 = (sex_0.max(axis = 0) )\n",
    "b0 = (sex_0.min(axis = 0) )\n",
    "c0 = (sex_0.mean(axis = 0) )\n",
    "d0 = (sex_0.mean(axis = 0) )\n",
    "e0 = (sex_0.var(axis = 0) )\n",
    "print('男生中python成绩中的最大值、最小值、平均数、标准差分别是',a0[0],b0[0],c0[0],d0[0],e0[0])\n",
    "print('男生中数学成绩中的最大值、最小值、平均数、标准差分别是',a0[1],b0[1],c0[1],d0[1],e0[1])\n",
    "print('男生中语文成绩中的最大值、最小值、平均数、标准差分别是',a0[2],b0[2],c0[2],d0[2],e0[2])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 54,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "女生中python成绩中的最大值、最小值、平均数、标准差分别是 99 1 49.401315789473685 49.401315789473685 844.4244719529084\n",
      "女生中数学成绩中的最大值、最小值、平均数、标准差分别是 100 0 51.4078947368421 51.4078947368421 824.0046745152354\n",
      "女生中语文成绩中的最大值、最小值、平均数、标准差分别是 99 0 49.9671052631579 49.9671052631579 869.0318126731304\n"
     ]
    }
   ],
   "source": [
    "a1 = (sex_1.max(axis = 0) )\n",
    "b1 = (sex_1.min(axis = 0) )\n",
    "c1 = (sex_1.mean(axis = 0) )\n",
    "d1 = (sex_1.mean(axis = 0) )\n",
    "e1 = (sex_1.var(axis = 0) )\n",
    "print('女生中python成绩中的最大值、最小值、平均数、标准差分别是',a1[0],b1[0],c1[0],d1[0],e1[0])\n",
    "print('女生中数学成绩中的最大值、最小值、平均数、标准差分别是',a1[1],b1[1],c1[1],d1[1],e1[1])\n",
    "print('女生中语文成绩中的最大值、最小值、平均数、标准差分别是',a1[2],b1[2],c1[2],d1[2],e1[2])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.3"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
